<?php 
namespace app\common\model;

use think\Model;

class Badge extends Model
{
	protected function getCreateTimeAttr($v)
	{
		return date('Y-m-d H:i:s',$v);
	}
	
	protected function getClassNameAttr($v)
	{
		$arr = ['primary','success','info','warning','danger'];
		return $arr[rand(0,4)];
	}
}